/**
 * Created by 小润 on 2017/4/25.
 */
$(document).ready(function(){
    init();
});
function init(){
    $.ajax({
        type: "post",
        url: '/api/v1/discovery/index',
        success: function (data) {
            //获取数据后初始化页面
            $('#enter-family').html(data.f_count);
            $('#number-of-people').html(data.fp_count);
            $('#newly-increased').html(data. y_count );
        },
        error: function (msg) {
            console.log(msg)
        }
    });
}